package vip.xiaonuo.sys.fymodule.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 支付方式
 * </p>
 *
 * @author wangy
 * @since 2025-06-20
 */
@Data
@TableName("sxo_payment")
@Schema(name = "SxoPayment对象", description = "支付方式")
public class SxoPayment implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @Schema(description = "名称")
    @TableField("name")
    private String name;

    @Schema(description = "唯一标记")
    @TableField("payment")
    private String payment;

    @Schema(description = "logo")
    @TableField("logo")
    private String logo;

    @Schema(description = "插件版本")
    @TableField("version")
    private String version;

    @Schema(description = "适用系统版本")
    @TableField("apply_version")
    private String applyVersion;

   /* @Schema(description = "插件描述")
    @TableField("desc")
    private String desc;*/

    @Schema(description = "作者")
    @TableField("author")
    private String author;

    @Schema(description = "作者主页")
    @TableField("author_url")
    private String authorUrl;

    @Schema(description = "配置项规则")
    @TableField("element")
    private String element;

    @Schema(description = "配置数据")
    @TableField("config")
    private String config;

    @Schema(description = "适用终端 php一维数组json字符串存储（pc, h5, ios, android, alipay, weixin, baidu, toutiao, qq）")
    @TableField("apply_terminal")
    private String applyTerminal;

    @Schema(description = "原始适用终端 php一维数组json字符串存储（pc, h5, ios, android, alipay, weixin, baidu, toutiao, qq）")
    @TableField("apply_terminal_old")
    private String applyTerminalOld;

    @Schema(description = "是否启用（0否，1是）")
    @TableField("is_enable")
    private Integer isEnable;

    @Schema(description = "是否对用户开放")
    @TableField("is_open_user")
    private Integer isOpenUser;

    @Schema(description = "顺序")
    @TableField("sort")
    private Integer sort;

    @Schema(description = "添加时间")
    @TableField("add_time")
    private Integer addTime;

    @Schema(description = "更新时间")
    @TableField("upd_time")
    private Integer updTime;

    @Schema(description = "支付渠道类型")
    @TableField(exist = false)
    private String payChannelType;

    @Schema(description = "appid(微信)")
    @TableField(exist = false)
    private String appid;

    @Schema(description = "mini_appid")
    @TableField(exist = false)
    private String miniAppid;

    @Schema(description = "mch_id(微信商户号)")
    @TableField(exist = false)
    private String mchId;

    @Schema(description = "apiclient_cert(微信)")
    @TableField(exist = false)
    private String apiclientCert;

    @Schema(description = "apiclient_key(微信)")
    @TableField(exist = false)
    private String apiclientKey;



}
